﻿using DapperExtensions;
using System;
namespace FineAdmin.Model
{
    [Table("Material")]
    /// <summary>
    /// Material 
    /// </summary>
    public class MaterialModel : Entity
    {
        /// <summary>
        /// 物料ID 
        /// </summary>
        public int? MaterialId { get; set; }

        /// <summary>
        /// 无 
        /// </summary>
        public string ShortName { get; set; }

        /// <summary>
        /// 名称 
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 备注 
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 无 
        /// </summary>
        public string CategoryV1 { get; set; }

        /// <summary>
        /// 类别 
        /// </summary>
        public string CategoryV2 { get; set; }

        /// <summary>
        /// 无 
        /// </summary>
        public string CategoryV3 { get; set; }

        /// <summary>
        /// 商品总数 
        /// </summary>
        public int? Quantity { get; set; }

        /// <summary>
        /// 无 
        /// </summary>
        public bool? ShowWeb { get; set; }

        /// <summary>
        /// 无 
        /// </summary>
        public bool? ShowPhone { get; set; }

        /// <summary>
        /// 是否启用 
        /// </summary>
        public bool? IsEnable { get; set; }

        /// <summary>
        /// 是否启用自动更新 
        /// </summary>
        public bool? IsEnableAutoUpdate { get; set; }

        /// <summary>
        /// 直链 
        /// </summary>
        public string Link_To { get; set; }

        /// <summary>
        /// 更新间隔 分钟 
        /// </summary>
        public int? UpdateInterval { get; set; }

        /// <summary>
        /// 上次更新时间 
        /// </summary>
        public DateTime? LastUpdate { get; set; }

        /// <summary>
        /// 限制更新数量 
        /// </summary>
        public int? LimitQuantity { get; set; }

    }
}